package edu.nf.meituan.dao.user;

import edu.nf.meituan.model.order.user.UserShopPing;
import edu.nf.meituan.model.user.Shopping;
import java.util.List;
/**
 * @Date 2023/6/19
 * @Author zgm
 * 购物车
 */
public interface ShoppingDAO {
    /**
     * 添加购物车
     * @param shopping
     * @return
     */
    public int addShopPing(Shopping shopping);

    /**
     * 根据用户id，商家id，状态码查询购物车
     * @param userId
     * @param shopId
     * @return
     */
    public List<UserShopPing> listShopping(int userId, int shopId);

    /**
     * 根据用户id，商家id 修改订单状态码
     * @param userId
     * @param shopId
     * @return
     */
    public int updateShopPing(int userId, int shopId);
}

